class Element
{
public:
    /** Default constructor */
    Element()
    {
	this->counter = 0;
	this->nr = 0;
	this->parent = NULL;
	this->child = NULL;
	this->next[0] = NULL; //rechtdoor
	this->next[1] = NULL; //achteruit
	this->next[2] = NULL;
	this->next[3] = NULL;	
	this->next[4] = NULL;
    }
    
    /** Default destructor */
	~Element(){
			this->next[0] = NULL; //rechtdoor
			this->next[1] = NULL; //achteruit
			this->next[2] = NULL;
			this->next[3] = NULL;	
			this->next[4] = NULL;
			this->counter = 0;
			this->nr = 0;
			this->parent = NULL;
			this->child = NULL;
			this->depth = 0;
			this->last_move = 0;
			this->cost = 999999;
			
		  }
	
	int nr;
	int counter;
	float cost;
	int last_move;	
	int depth;

	Location own_robot;
	Location enemy_robot;

	Element *parent;
	Element *child;
	Element *next[5]; 

    
};
